

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" type="image/png" href="/img/favicon.png">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="CodeHope">
  <meta name="author" content="CodeHope">
  <meta name="keywords" content="希望">
  <title>CodeHope</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"quancundexiwang.wang","root":"/","version":"1.8.7","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":true,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"onlypost":true},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":"Mi65hxq7VAFUDwOLeIGAOgiV-gzGzoHsz","app_key":"hMuhiD4FRqhns4giqLiEH9HG","server_url":null}}};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.3.0"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/">&nbsp;<strong>CodeHope</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                村头
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                我
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" href="javascript:">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('http://qiniuyun.quancundexiwang.wang/20210509090921.png') repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.5)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="就爱吃番茄炒鸡蛋，最好加个鸡蛋！">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="iconfont icon-arrowdown"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-x-md">
        <div class="py-5" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/50009/" target="_self">
          <img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Koa项目的一些项目搭建习惯总结">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/50009/">Koa项目的一些项目搭建习惯总结</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/50009/">
          
          
            
          
          1.koa项目的全局错误拦截Exception
其实很简单，就是根据洋葱模型的设计，使用中间件（函数）做一层拦截！


自己可能预料到的错误
class HttpException extends Error &#123;
  //继承Error 当遇到错误的时候 new HttpException实例可以被 throw 抛出错误，然后exception中间件捕获
  constructor(me
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-08 23:12" pubdate>
              2020-09-08
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/node-js/">node-js</a>
            
              <a href="/tags/%E9%A1%B9%E7%9B%AE%E9%A3%8E%E6%A0%BC/">项目风格</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=622664691,2483062617&fm=15&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/14238/" target="_self">
          <img src="https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=622664691,2483062617&fm=15&gp=0.jpg" style="object-fit:contain;" alt="React-React+TS实现组件库">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/14238/">React-React+TS实现组件库</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/14238/">
          
          
            
          
          Button组件 props 分析
type IconPosition &#x3D; &quot;append&quot; | &quot;prepend&quot;; &#x2F;&#x2F;图标位置
type BtnSize &#x3D; &quot;small&quot; | &quot;large&quot; ;&#x2F;&#x2F;按钮尺寸
type BtnType &#x3D; &q
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-07 11:34" pubdate>
              2020-09-07
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF-React/">前端-React</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/React%E6%A1%86%E6%9E%B6%E7%BB%84%E4%BB%B6%E5%BA%93/">React框架组件库</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/36440/" target="_self">
          <img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Css小特效没啥用的闪眼的字">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/36440/">Css小特效没啥用的闪眼的字</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/36440/">
          
          
            
          
          效果预览

    &lt;style>
        @import url('https://fonts.googleapis.com/css2?family=Grandstander:wght@100&amp;display=swap');
        * &#123;
            padding: 0;
            margin: 0;
        &#1
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-06 11:21" pubdate>
              2020-09-06
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E5%96%9C%E6%AC%A2%E5%B0%8F%E7%89%B9%E6%95%88/">喜欢小特效</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/8213/" target="_self">
          <img src="https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=444247071,3464022379&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Css-Interview">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/8213/">Css-Interview</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/8213/">
          
          
            
          
          1.CSS选择器的优先级？✨CSS选择器的优先级是：内联 &gt; ID选择器(#xxx) &gt; 类选择器(.xxx) &gt; 标签选择器
2.link和@import的区别？
link属于XHTML标签，⽽@import是CSS提供的。
⻚⾯被加载时，link会同时被加载，⽽@import引⽤的CSS会等到⻚⾯被加载完再加载。
import只在IE5以上才能识别，⽽link是XHTML标签
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-02 11:41" pubdate>
              2020-09-02
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF%E9%9D%A2%E8%AF%95/">前端面试</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/css/">css</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2352944211,1186424373&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/23665/" target="_self">
          <img src="https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=2352944211,1186424373&fm=26&gp=0.jpg" style="object-fit:contain;" alt="HTML-Interview">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/23665/">HTML-Interview</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/23665/">
          
          
            
          
          1.doctype的作⽤是什么？✨
DOCTYPE是html5标准⽹⻚声明，来告知浏览器的解析器⽤什么⽂档标准解析这个⽂档。

⽂档解析类型有：

怪异模式 浏览器使⽤⾃⼰的怪异模式解析渲染⻚⾯。（没有声明DOCTYPE，默认就是这个模式）-&gt;会模拟更旧的浏览器的⾏为
标准模式，浏览器使⽤W3C的标准解析渲染⻚⾯。-&gt;⻚⾯按照 HTML 与 CSS 的定义渲染

2.有哪些常⽤的met
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-09-02 11:12" pubdate>
              2020-09-02
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF%E9%9D%A2%E8%AF%95/">前端面试</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/HTML5/">HTML5</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/3067/" target="_self">
          <img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg" style="object-fit:contain;" alt="对JavaScript中异步的理解">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/3067/">对JavaScript中异步的理解</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/3067/">
          
          
            
          
          1.异步概述Javascript语言的执行环境是&quot;单线程&quot;（single thread）。
所谓”单线程”，就是指一次只能完成一件任务。如果有多个任务，就必须排队，前面一个任务完成，再执行后面一个任务，以此类推。
这种模式的优缺点：

优点

实现起来比较简单
执行环境相对单纯


缺点

只要有一个任务耗时很长，后面的任务都必须排队等着，会拖延整个程序的执行。常见的浏览器无响
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-31 17:51" pubdate>
              2020-08-31
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript%E5%9F%BA%E6%9C%AC%E5%8A%9F/">JavaScript基本功</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/SVG_logo.svg/1200px-SVG_logo.svg.png') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/15960/" target="_self">
          <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/SVG_logo.svg/1200px-SVG_logo.svg.png" style="object-fit:contain;" alt="动画Svg(loading,background)1⃣️">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/15960/">动画Svg(loading,background)1⃣️</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/15960/">
          
          
            
          
          
根据加载速度可能会出现等待加载一段时间，可以使用开发者调试模式！直接复制svg直接使用！
LOADING-DNA

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

  
  
  

 
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-31 16:44" pubdate>
              2020-08-31
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF/">前端</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/svg%E5%8A%A8%E7%94%BB/">svg动画</a>
            
              <a href="/tags/loading/">loading</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/12122/" target="_self">
          <img src="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=944544729,1274240590&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Js笔试题">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/12122/">Js笔试题</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/12122/">
          
          
            
          
          1.题目一➡️原型链相关function A() &#123;

&#125;

A.prototype.n = 2;

var a1 = new A();

A.prototype = &#123;
    n:5,
    m:6
&#125;
var a2 = new A();
console.log(a1.n)//2 
console.log(a2.n)//5

因为 a1创建的时候，只是
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-31 16:19" pubdate>
              2020-08-31
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/%E5%89%8D%E7%AB%AF%E9%9D%A2%E8%AF%95/">前端面试</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/JavaScript/">JavaScript</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3809780941,1211248538&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/4730/" target="_self">
          <img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3809780941,1211248538&fm=26&gp=0.jpg" style="object-fit:contain;" alt="简单实现Vuex&amp;vue-Router">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/4730/">简单实现Vuex&amp;vue-Router</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/4730/">
          
          
            
          
          1.Vue-router重写基本功能
作为插件存在：实现VueRouter类和install方法 

实现两个全局组件 router-view 和 router-link

监听url变化 hashChange popstate

响应最新URL,响应属性Current,改变时获取对应组件显示
知识点

Vue.util.defineReactive 定义一个响应式属性

this.$slots.
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-31 11:00" pubdate>
              2020-08-31
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/vue%E6%A1%86%E6%9E%B6/">vue框架</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/%E7%AE%80%E5%8D%95%E5%AE%9E%E7%8E%B0vuex-vue-router/">简单实现vuex&vue-router</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card" style="position: relative;">
    <div style="background: url('https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3809780941,1211248538&fm=26&gp=0.jpg') repeat center center;
      background-size: cover;filter:blur(3px);width:100%;height:100%;position:absolute;filter:blur(30px);opacity:.4;">
    </div>
    
    
      <div class="col-12 col-md-4 m-auto index-img" >
        <a href="/posts/62821/" target="_self">
          <img src="https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3809780941,1211248538&fm=26&gp=0.jpg" style="object-fit:contain;" alt="Vue-Interview">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/posts/62821/">Vue-Interview</a>
      </h1>

      <p class="index-excerpt">
        <a href="/posts/62821/">
          
          
            
          
          1.vue.nextTick()方法思考vue.nextTick可以在数据修改后立刻获取更新后的dom 😄
当数据改变后，vue会把渲染watcher添加到异步队列，异步执行，同步代码执行完成后再统一修改dom，我们看下面的代码。👀
&lt;body>
    &lt;div class="app">
        &lt;div ref="msgDiv">&#123;&#123;msg&#
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2020-08-31 10:46" pubdate>
              2020-08-31
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/categories/vue%E6%A1%86%E6%9E%B6/">vue框架</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/tags/vue%E6%A1%86%E6%9E%B6%E5%89%8D%E7%AB%AF%E9%9D%A2%E8%AF%95/">vue框架前端面试</a>
            
          </div>
        
      </div>
    </article>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <a class="extend prev" rel="prev" href="/page/8/"><i class="iconfont icon-arrowleft"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/7/">7</a><a class="page-number" href="/page/8/">8</a><span class="page-number current">9</span><a class="page-number" href="/page/10/">10</a><a class="page-number" href="/page/11/">11</a><a class="extend next" rel="next" href="/page/10/"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>
  
  <script>
    for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
      ele.href += '#board';
    }
  </script>



              </div>
            </div>
          </div>
        </div>
      </div>
    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
    

  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


  
  <!-- 备案信息 -->
  <div class="beian">
    <span>
      <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
        豫ICP备20009912号-1
      </a>
    </span>
    
  </div>


  
</footer>

<!-- SCRIPTS -->

  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":true,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" ></script>
<script  src="/js/debouncer.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  
    
  



  
    
  









  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.6/dist/clipboard.min.js" ></script>



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>



  <script  src="/js/local-search.js" ></script>
  <script>
    (function () {
      var path = "http://qiniuyun.quancundexiwang.wang/xmlSearch.xml";
      var inputArea = document.querySelector("#local-search-input");
      inputArea.onclick = function () {
        searchFunc(path, 'local-search-input', 'local-search-result');
        this.onclick = null
      }
    })()
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>



</body>
</html>
